Skip to content

Conversation

stellasia
Copy link
Contributor

@stellasia stellasia commented Jun 10, 2025

Description

This PR adds a new component: SchemaFromExistingGraphExtractor that builds ta GraphSchema object from an exiting database:

    with neo4j.GraphDatabase.driver(
        URI,
        auth=AUTH,
    ) as driver:
        extractor = SchemaFromExistingGraphExtractor(driver)
        schema: GraphSchema = await extractor.run()
        # schema.store_as_json("my_schema.json")
        print(schema)

It leverages the get_structured_schema function and transform its output into a GraphSchema object.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Project configuration change

Complexity

Complexity: Low

How Has This Been Tested?

  • Unit tests
  • E2E tests
  • Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • Unit tests have been updated
  • E2E tests have been updated
  • Examples have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed
  • CHANGELOG.md updated if appropriate

@stellasia stellasia force-pushed the feature/schema-from-existing-graph branch 2 times, most recently from d5d230e to 61cd172 Compare June 17, 2025 11:12
@stellasia stellasia force-pushed the feature/schema-from-existing-graph branch from d9c7ee7 to 2bc1018 Compare July 7, 2025 16:26
@stellasia stellasia changed the title Feature/schema from existing graph SchemaFromExistingGraphExtractor component Jul 7, 2025
@stellasia stellasia force-pushed the feature/schema-from-existing-graph branch from 2bc1018 to ed64ce8 Compare July 31, 2025 11:26
@stellasia stellasia marked this pull request as ready for review August 21, 2025 10:03
@stellasia stellasia requested a review from a team as a code owner August 21, 2025 10:03
@stellasia stellasia force-pushed the feature/schema-from-existing-graph branch from 00fc875 to 4908b6a Compare August 21, 2025 10:03
@stellasia stellasia requested a review from oskarhane August 27, 2025 08:09
@stellasia stellasia force-pushed the feature/schema-from-existing-graph branch from 4908b6a to 35a9048 Compare August 27, 2025 14:20
Copy link
Member

@oskarhane oskarhane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants